package com.xu.cloud.shorturl.config;

import com.xu.cloud.common.sequence.ISequence;
import com.xu.cloud.common.sequence.SimpleSnowflakeIdSequence;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 序列配置
 *
 * @author xuguan
 * @since 2024/3/5
 */
@Configuration
public class SequenceConfig {
    @Bean
    public ISequence sequenceGenerator() {
        return new SimpleSnowflakeIdSequence(0, 0);
    }
}
